package lab6_Adapter_FigGeometrice;

public class Main {
	public static void main(String arg[])
	{
		Punct a=new Punct(1.0, 2.0);
		Punct b=new Punct(0.0, 1.0);
		Punct c=new Punct(0.0, 0.0);
		Punct d=new Punct(0.0, 2.0);
		
		System.out.println("Triunghi");
		Triunghi t=new Triunghi(a, b, c);
		System.out.println("perimetru: "+t.perimetru());
		System.out.println("aria: "+t.arie());
		
		System.out.println("Patrat");
		Patrat p=new Patrat(a, b, c, d);
		System.out.println("perimetru: "+p.perimetru());
		System.out.println("aria: "+p.arie());
		
		System.out.println("Cerc");
		Cerc cc=new Cerc(a, 3.0);
		System.out.println("lungime: "+cc.lungime());
		System.out.println("aria: "+cc.arie());
	}

}
